<template lang="">
  <p>{{ dayTime }}</p>
</template>
<script>
export default {
  name: "DayTime",
  data() {
    return {
      dayTime: "",
    };
  },
  methods: {
    getDayTime() {
      this.dayTime = this.$utils.formatDate(new Date());
    },
  },
  created() {
    this.getDayTime();
  },
  mounted() {
    setInterval(this.getDayTime, 1000);
  },
};
</script>
